<template>
  <div>
    <TopNav></TopNav>
    <div class="infoUserTop" >
      <img :src="user.data.profile.avatarUrl" alt="" class="profileimg" />
      <div class="name">{{ user.data.profile.nickname }}</div>
    </div>
    <UserMusicList ></UserMusicList>
  </div>
</template>

<script>
import TopNav from "@/components/home/TopNav.vue";
import { mapState } from "vuex";
import UserMusicList from "../components/infoUser/UserMusicList";
export default {
  components:{UserMusicList,TopNav},
  computed: {
    ...mapState(["user"]),
  },
  mounted() {
    console.log("user=");
    console.log(this.user);
  },

};
</script>
<style lang="less" scoped>
.infoUserTop {
  width: 100%;
  height: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  .profileimg {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
  }
  .name{
    font-weight: 700;
    font-size: .4rem;
  }
}
</style>
